package com.cn.springcloudwechat.common.utils;

import java.util.Random;

public class RandomNumberUtil {

	public static String getRandomNumber() {
		Random random = new Random();
		String number = "";
		while (number.length() != 4) {
			number = String.valueOf(Math.abs(random.nextLong() % 10000));
		}
		return number;
	}
}
